package com.smrtcold.dev.dto.task.defrost;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TimeSegment {
    private int startMinute;
    private int endMinute;

    public TimeSegment(int start, int end) {
        this.startMinute = start;
        this.endMinute = end;
    }

   public int duration() {
        return endMinute - startMinute;
    }
}
